import Vue from 'vue'
import Router from 'vue-router'
import Adminadd from './components/contents/admin-add'
import Adminedit from './components/contents/admin-edit'
import Memberlist from './components/contents/member-list'
import Statistic from './components/contents/statistics'
import Memberedit from './components/contents/member-edit'
import OfficialSite from './components/contents/official-website'
import LeadList from './components/contents/lead-list'
import Login from './components/contents/login'
import Workarea from './components/workarea'
import Polygonal from './components/contents/polygonal'
import Userlist from './components/contents/user-list'
import Sealist from './components/contents/sea-list'
import Pricetable from './components/contents/pricetable'
import Clientdrop from  './components/contents/clientdrop'
import Leaddrop from './components/contents/leaddrop'
import Mylead from './components/contents/myleads'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/workarea',
      component: Workarea,
      children: [
        {
          path: '/adminadd',
          name: 'adminadd',
          component: Adminadd
        },
        {
          path: '/adminedit',
          name: 'adminedit',
          component: Adminedit
        },
        {
          path: '/memberlist',
          name: 'memberlist',
          component: Memberlist,
          meta: {title: '客户列表'}
        },
        {
          path: '/sealist',
          name: 'sealist',
          component: Sealist,
          meta: {title: '客户公海'}
        },
        {
          path: '/',
          name: 'Default',
          component: Memberlist,
          meta: {title: '客户列表'}
        },
        {
          path: '/statistic',
          name: 'statistic',
          component: Statistic,
          meta: {title: '统计页面'}
          },
        {
          path: '/Memberedit',
          name: 'Memberedit',
          component: Memberedit
        },
        {
          path: '/leadslist',
          name: 'leadslist',
          component: LeadList,
          meta: {title: '线索池'}
        },
        {
          path: '/polygonal',
          name: 'polygonal',
          component: Polygonal
        },
        {
          path: '/userlist',
          name: 'userlist',
          component: Userlist,
          meta: {title: '用户管理'}
        },
        {
          path: '/pricetable',
          name: 'pricetable',
          component: Pricetable,
          meta: {title: '售价表'}
        },
        {
          path: '/clientdrop',
          name: 'clientdrop',
          component: Clientdrop,
          meta: {title: '废弃客户'}
        },
        {
          path: '/mylead',
          name: 'mylead',
          component: Mylead,
          meta: {title: '我的线索'}
        },
        {
          path: '/leaddrop',
          name: 'leaddrop',
          component: Leaddrop,
          meta: {title: '废弃线索'}
        },

      ]
    },

  ]
})
